<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<script type="text/javascript">
			window.onload = function(){
				window.onkeydown = function(e){
					//获取事件对象 短路
					var ev = window.event || e;
					
					//获取键盘码
//					var num = ev.keyCode;
//					alert(num);

					//通过键盘码转为具体字符
//					var con = String.fromCharCode(ev.keyCode);
//					alert(con);

					//判断是否按下alt 返回布尔值
//					alert(ev.altKey);
					
//					alert(ev.shiftKey);

//					alert(ev.ctrlKey);
				}
			}
		</script>
	</head>
	<body>
		
	</body>
</html>
